package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

public interface OrderInfoService {
    boolean hasStock(Long skuId, Integer skuNum);

    Long insertOrder(OrderInfo orderInfo);

    OrderInfo getOrderInfo(Long orderId);

    void sendOrderStatus(Long id);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);

    //准备发给仓库那边的数据
    public Map initWareOrder(OrderInfo orderInfo);

    public void updateOrderStatus(Long orderId, ProcessStatus split);
}
